<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>iframe嵌入页面</title>
  </head>
  <body>
    <div>这个是第一个框架的第一行内容</div>
    <button type="button" onclick="frameClick()">框架里面的按钮</button>
    <button type="button" onclick="window.close()">关闭</button>
    <script>
      function frameClick() {
        window.alert(window.parent.location);
      }
    </script>
  </body>
</html>
